﻿
#include "strid.h"
#include "Engine/resmgr.h"

std::map<int,wchar_t*> CtrlIdStorage;
std::map<int,wchar_t*> ResIdStorage;

void AddCtrlId(int IdIndex,wchar_t* StrId)
{
	WCHAR* CopyId=wstrdup(StrId);
	CtrlIdStorage.insert(std::make_pair(IdIndex,CopyId));
}

void AddResId(int IdIndex,WCHAR* StrId)
{
	WCHAR* CopyId=wstrdup(StrId);
	ResIdStorage.insert(std::make_pair(IdIndex,CopyId));
}

void AddCtrlIdBatch(int IdIndex,WCHAR* StrIdFormat,int Num)
{
	WCHAR Buf[1024];
	for (int i=0;i<Num;i++)
	{
		swprintf(Buf,StrIdFormat,i);
		WCHAR* CopyId=wstrdup(Buf);
		CtrlIdStorage.insert(std::make_pair(IdIndex+i,CopyId));
	}
}

void AddResIdBatch(int IdIndex,WCHAR* StrIdFormat,int Num)
{
	WCHAR Buf[1024];
	for (int i=0;i<Num;i++)
	{
		swprintf(Buf,StrIdFormat,i);
		WCHAR* CopyId=wstrdup(Buf);
		ResIdStorage.insert(std::make_pair(IdIndex+i,CopyId));
	}
}

void ClearAll()
{
	std::map<int,WCHAR*>::iterator it;
	for (it=CtrlIdStorage.begin();it!=CtrlIdStorage.end();it++)
	{
		WCHAR* CopyId=it->second;
		wstrfree(CopyId);
	}
	CtrlIdStorage.clear();
	for (it=ResIdStorage.begin();it!=ResIdStorage.end();it++)
	{
		WCHAR* CopyId=it->second;
		wstrfree(CopyId);
	}
	ResIdStorage.clear();
}


WCHAR* GetCtrlId(int Index)
{
	std::map<int,WCHAR*>::iterator it=CtrlIdStorage.find(Index);
	if (it!=CtrlIdStorage.end())
		return it->second;
	return NULL;
}

WCHAR* GetResId(int Index)
{
	std::map<int,WCHAR*>::iterator it=ResIdStorage.find(Index);
	if (it!=ResIdStorage.end())
		return it->second;
	return NULL;
}

BOOL IsSameCtrlId(WCHAR* TextId,int CtrlId)
{
	WCHAR* TextId2=GetCtrlId(CtrlId);
	if (TextId2==NULL)
		return FALSE;
	return wcscmp(TextId,TextId2)==0;
}

void UninitStringIdMap()
{
	ClearAll();
}


void RetainAppImageRes()
{
	ResMgr->LoadImageR(GetResId(RID_选择职业背景),L"AppRes\\选择职业背景.jpg",0,0,1080,810);
	ResMgr->LoadImageR(GetResId(RID_奶妈大头像),L"AppRes\\奶妈大头像.jpg",0,0,320,200);
	ResMgr->LoadImageR(GetResId(RID_奶妈大头像Hover),L"AppRes\\奶妈大头像Hover.jpg",0,0,320,200);
	ResMgr->LoadImageR(GetResId(RID_剑帝大头像),L"AppRes\\剑帝大头像.jpg",0,0,320,200);
	ResMgr->LoadImageR(GetResId(RID_剑帝大头像Hover),L"AppRes\\剑帝大头像Hover.jpg",0,0,320,200);
	ResMgr->LoadImageR(GetResId(RID_主背景_奶妈),L"AppRes\\奶妈背景.jpg",0,0,1080,810);
	ResMgr->LoadImageR(GetResId(RID_主背景_剑帝),L"AppRes\\剑帝背景.jpg",0,0,1080,810);

	ResMgr->LoadImageR(GetResId(RID_装备面板标题),L"AppRes\\区域标题.png",0,0,600,30);
	ResMgr->LoadImageR(GetResId(RID_条件面板标题),L"AppRes\\区域标题.png",0,30,600,30);
	ResMgr->LoadImageR(GetResId(RID_技能面板标题),L"AppRes\\区域标题.png",0,60,600,30);
	ResMgr->LoadImageR(GetResId(RID_打造面板标题),L"AppRes\\区域标题.png",0,90,600,30);
	ResMgr->LoadImageR(GetResId(RID_特性面板标题),L"AppRes\\区域标题.png",0,120,600,30);

	ResMgr->LoadImageR(GetResId(RID_特性面板背景_规律),L"AppRes\\规律背景.png",0,0,684,500);
	ResMgr->LoadImageR(GetResId(RID_特性面板背景_猛攻),L"AppRes\\猛攻背景.png",0,0,684,500);
	ResMgr->LoadImageR(GetResId(RID_特性面板背景_保护),L"AppRes\\保护背景.png",0,0,684,500);
	ResMgr->LoadImageR(GetResId(RID_特性面板背景_具现),L"AppRes\\具现背景.png",0,0,684,500);

	WCHAR Name[MAX_PATH];
	for (int i=0;i<38;i++)
	{
		swprintf(Name,L"AppRes\\renewal_specificityicon_01.img\\%d.png",i);
		ResMgr->LoadImageR(GetResId(RID_特性技能规律图标+i),Name,0,0,49,49);
	}
	for (int i=0;i<28;i++)
	{
		swprintf(Name,L"AppRes\\renewal_specificityicon_02.img\\%d.png",i);
		ResMgr->LoadImageR(GetResId(RID_特性技能猛攻图标+i),Name,0,0,49,49);
	}
	for (int i=0;i<30;i++)
	{
		swprintf(Name,L"AppRes\\renewal_specificityicon_03.img\\%d.png",i);
		ResMgr->LoadImageR(GetResId(RID_特性技能保护图标+i),Name,0,0,49,49);
	}
	for (int i=0;i<32;i++)
	{
		swprintf(Name,L"AppRes\\renewal_specificityicon_04.img\\%d.png",i);
		ResMgr->LoadImageR(GetResId(RID_特性技能具现图标+i),Name,0,0,49,49);
	}

	for (int i=0;i<11;i++)
	{
		ResMgr->LoadImageR(GetResId(RID_特性技能等级+i),L"AppRes\\特性技能等级.png",0,16*i,30,16);
		ResMgr->LoadImageR(GetResId(RID_特性技能等级满+i),L"AppRes\\特性技能等级.png",30,16*i,30,16);
	}

	ResMgr->LoadImageR(GetResId(RID_特性技能图标光圈Normal),L"AppRes\\特性技能外圈.png",0,0,49,49);
	ResMgr->LoadImageR(GetResId(RID_特性技能图标光圈Hover),L"AppRes\\特性技能外圈.png",49,0,49,49);
	ResMgr->LoadImageR(GetResId(RID_特性技能升级Normal),L"AppRes\\特性调整按钮.png",16,0,16,16);
	ResMgr->LoadImageR(GetResId(RID_特性技能升级Hover),L"AppRes\\特性调整按钮.png",16,16,16,16);
	ResMgr->LoadImageR(GetResId(RID_特性技能升级Push),L"AppRes\\特性调整按钮.png",16,32,16,16);
	ResMgr->LoadImageR(GetResId(RID_特性技能降级Normal),L"AppRes\\特性调整按钮.png",0,0,16,16);
	ResMgr->LoadImageR(GetResId(RID_特性技能降级Hover),L"AppRes\\特性调整按钮.png",0,16,16,16);
	ResMgr->LoadImageR(GetResId(RID_特性技能降级Push),L"AppRes\\特性调整按钮.png",0,32,16,16);

	
	ResMgr->LoadImageR(GetResId(RID_角色详情背景),L"AppRes\\角色详情背景.png",0,0,380,760);
	ResMgr->LoadImageR(GetResId(RID_角色详情背景_短),L"AppRes\\角色详情背景短.png",0,0,380,680);
	ResMgr->LoadAnimationR(GetResId(RID_Q奶妈),L"AppRes\\Q奶妈.png",40,42,8,100);
	ResMgr->LoadAnimationR(GetResId(RID_Q剑帝),L"AppRes\\Q剑帝.png",40,42,14,100);

	ResMgr->LoadImageR(GetResId(RID_冷却详情背景),L"AppRes\\冷却详情背景.png",0,0,380,760);

	for (int i=0;i<DNF场景总数;i++)
		ResMgr->LoadImageR(GetResId(RID_场景图标+i),L"AppRes\\场景和怪物图标.png",0,i*28,28,28);
	for (int i=0;i<DNF怪物总数;i++)
		ResMgr->LoadImageR(GetResId(RID_怪物图标+i),L"AppRes\\场景和怪物图标.png",28,i*28,28,28);
	for (int i=0;i<DNF药剂总数;i++)
		ResMgr->LoadImageR(GetResId(RID_药剂图标+i),L"AppRes\\药剂.png",28*i,0,28,28);

	for (int i=0;i<21;i++)
	{
		ResMgr->LoadImageR(GetResId(RID_强化数字+i),L"AppRes\\强化数字.png",0,10*i,19,10);
		ResMgr->LoadImageR(GetResId(RID_增幅数字+i),L"AppRes\\强化数字.png",19,10*i,19,10);
	}
	for (int i=0;i<9;i++)
		ResMgr->LoadImageR(GetResId(RID_锻造数字+i),L"AppRes\\强化数字.png",38,10*i,19,10);
	for (int i=0;i<14;i++)
		ResMgr->LoadImageR(GetResId(RID_徽章槽位+i),L"AppRes\\徽章.png",i%3*13,i/3*8,13,8);
	
	ResMgr->LoadImageR(GetResId(RID_伤害详情背景_修炼道场),L"AppRes\\修炼道场背景.jpg",0,0,1080,810);
	ResMgr->LoadImageR(GetResId(RID_伤害详情背景_巴卡尔攻坚战),L"AppRes\\巴卡尔背景.jpg",0,0,1080,810);
	ResMgr->LoadImageR(GetResId(RID_伤害详情背景_雾神攻坚战),L"AppRes\\雾神背景.jpg",0,0,1080,810);

	ResMgr->LoadImageR(GetResId(RID_打造标题_装备设置),L"AppRes\\子标题.png",0,0*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_打造标题_装扮设置),L"AppRes\\子标题.png",0,1*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_打造标题_辟邪玉设置),L"AppRes\\子标题.png",0,3*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_打造标题_杂项设置),L"AppRes\\子标题.png",0,5*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_打造标题_补正设置),L"AppRes\\子标题.png",0,7*28,660,28);

	ResMgr->LoadAnimationR(GetResId(RID_太初_馥郁的欢愉),L"AppRes\\太初图标\\馥郁的欢愉.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_冰封的怨恨),L"AppRes\\太初图标\\冰封的怨恨.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_逆流的记忆),L"AppRes\\太初图标\\逆流的记忆.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_爆发的噩梦),L"AppRes\\太初图标\\爆发的噩梦.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_守护魂),L"AppRes\\太初图标\\守护魂.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_佩鲁斯帝国的荣光),L"AppRes\\太初图标\\佩鲁斯帝国的荣光.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_灵魂追踪器),L"AppRes\\太初图标\\灵魂追踪器.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_红兔),L"AppRes\\太初图标\\红兔.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_回忆的低语),L"AppRes\\太初图标\\回忆的低语.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_雪封的愤怒),L"AppRes\\太初图标\\雪封的愤怒.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_遗忘魔石),L"AppRes\\太初图标\\遗忘魔石.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_孵化的恶意之种),L"AppRes\\太初图标\\孵化的恶意之种.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_世界偶像戒指),L"AppRes\\太初图标\\世界偶像戒指.png",28,28,30,100);
	ResMgr->LoadAnimationR(GetResId(RID_太初_辨明异徒的食指),L"AppRes\\太初图标\\辨明异徒的食指.png",28,28,30,100);

	for (int i=0;i<装备总数;i++)
		ResMgr->LoadImageR(GetResId(RID_装备图标+i),L"AppRes\\装备.png",(i%20)*28,(i/20)*28,28,28);
	for (int i=0;i<装备总数;i++)
		ResMgr->LoadImageR(GetResId(RID_装备图标灰色+i),L"AppRes\\装备灰色.png",(i%20)*28,(i/20)*28,28,28);
	ResMgr->LoadImageR(GetResId(RID_装备图标遮罩),L"AppRes\\特殊图标.png",5*28,0*28,28,28);

	for (int i=0;i<18;i++)
		ResMgr->LoadImageR(GetResId(RID_技能图标_奶妈+i),L"AppRes\\奶妈技能.png",i*28,0,28,28);
	for (int i=0;i<7;i++)
		ResMgr->LoadImageR(GetResId(RID_被动技能图标_奶妈+i),L"AppRes\\奶妈技能.png",(i+18)*28,0,28,28);
	ResMgr->LoadImageR(GetResId(RID_BUFF技能图标_奶妈),L"AppRes\\奶妈技能.png",25*28,0,28,28);

	for (int i=0;i<18;i++)
		ResMgr->LoadImageR(GetResId(RID_技能图标_剑帝+i),L"AppRes\\剑帝技能.png",i*28,0,28,28);
	for (int i=0;i<5;i++)
		ResMgr->LoadImageR(GetResId(RID_被动技能图标_剑帝+i),L"AppRes\\剑帝技能.png",(i+18)*28,0,28,28);
	ResMgr->LoadImageR(GetResId(RID_BUFF技能图标_剑帝),L"AppRes\\剑帝技能.png",23*28,0,28,28);

	for (int i=0;i<80;i++)
		ResMgr->LoadImageR(GetResId(RID_符文图标_奶妈+i),L"AppRes\\奶妈符文.png",(i%5)*28,(i/5)*28,28,28);
	for (int i=0;i<80;i++)
		ResMgr->LoadImageR(GetResId(RID_符文图标_剑帝+i),L"AppRes\\剑帝符文.png",(i%5)*28,(i/5)*28,28,28);
	for (int i=0;i<5;i++)
		ResMgr->LoadImageR(GetResId(RID_符文红色+i),L"AppRes\\特殊图标.png",i*28,0,28,28);

	ResMgr->LoadImageR(GetResId(RID_列表框背景),L"AppRes\\列表框背景.png",0,0,100,100);

	ResMgr->LoadImageR(GetResId(RID_技能区标题_护石符文),L"AppRes\\子标题.png",0,9*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_技能区标题_技能),L"AppRes\\子标题.png",0,11*28,660,28);
	ResMgr->LoadImageR(GetResId(RID_技能区标题_职业设置),L"AppRes\\子标题.png",0,10*28,660,28);

	ResMgr->LoadImageR(GetResId(RID_技能设置描述),L"AppRes\\技能设置描述.png",0,0,684,16);

	ResMgr->LoadImageR(GetResId(RID_附魔标记),L"AppRes\\徽章.png",26,32,7,7);
}

void AddAllResourceId()
{
	AddResId(RID_选择职业背景,L"RID_选择职业背景");
	AddResId(RID_奶妈大头像,L"RID_奶妈大头像");
	AddResId(RID_奶妈大头像Hover,L"RID_奶妈大头像Hover");
	AddResId(RID_剑帝大头像,L"RID_剑帝大头像");
	AddResId(RID_剑帝大头像Hover,L"RID_剑帝大头像Hover");

	AddResId(RID_主背景_奶妈,L"RID_主背景_奶妈");
	AddResId(RID_主背景_剑帝,L"RID_主背景_剑帝");

	AddResId(RID_装备面板标题,L"RID_装备面板标题");
	AddResId(RID_装备面板背景,L"RID_装备面板背景");

	AddResId(RID_条件面板标题,L"RID_条件面板标题");
	AddResId(RID_条件面板背景,L"RID_条件面板背景");

	AddResId(RID_技能面板标题,L"RID_技能面板标题");
	AddResId(RID_技能面板背景,L"RID_技能面板背景");

	AddResId(RID_打造面板标题,L"RID_打造面板标题");
	AddResId(RID_打造面板背景,L"RID_打造面板背景");

	AddResId(RID_特性面板标题,L"RID_特性面板标题");
	AddResId(RID_特性面板背景_规律,L"RID_特性面板背景_规律");
	AddResId(RID_特性面板背景_猛攻,L"RID_特性面板背景_猛攻");
	AddResId(RID_特性面板背景_保护,L"RID_特性面板背景_保护");
	AddResId(RID_特性面板背景_具现,L"RID_特性面板背景_具现");
	AddResIdBatch(RID_特性技能规律图标,L"RID_特性技能规律图标%d",38);
	AddResIdBatch(RID_特性技能猛攻图标,L"RID_特性技能猛攻图标%d",28);
	AddResIdBatch(RID_特性技能保护图标,L"RID_特性技能保护图标%d",30);
	AddResIdBatch(RID_特性技能具现图标,L"RID_特性技能具现图标%d",32);
	AddResIdBatch(RID_特性技能等级,L"RID_特性技能等级%d",11);
	AddResIdBatch(RID_特性技能等级满,L"RID_特性技能等级满%d",11);
	AddResId(RID_特性技能图标光圈Normal,L"RID_特性技能图标光圈Normal");
	AddResId(RID_特性技能图标光圈Hover,L"RID_特性技能图标光圈Hover");
	AddResId(RID_特性技能升级Normal,L"RID_特性技能升级Normal");
	AddResId(RID_特性技能升级Hover,L"RID_特性技能升级Hover");
	AddResId(RID_特性技能升级Push,L"RID_特性技能升级Push");
	AddResId(RID_特性技能降级Normal,L"RID_特性技能降级Normal");
	AddResId(RID_特性技能降级Hover,L"RID_特性技能降级Hover");
	AddResId(RID_特性技能降级Push,L"RID_特性技能降级Push");

	AddResId(RID_角色详情背景,L"RID_角色详情背景");
	AddResId(RID_角色详情背景_短,L"RID_角色详情背景_短");
	AddResId(RID_Q奶妈,L"RID_Q奶妈");
	AddResId(RID_Q剑帝,L"RID_Q剑帝");

	AddResId(RID_冷却详情背景,L"RID_冷却详情面板背景");

	AddResIdBatch(RID_场景图标,L"RID_场景图标%d",DNF场景总数);
	AddResIdBatch(RID_怪物图标,L"RID_怪物图标%d",DNF怪物总数);
	AddResIdBatch(RID_药剂图标,L"RID_药剂图标%d",DNF药剂总数);
	AddResIdBatch(RID_强化数字,L"RID_强化数字%d",21);
	AddResIdBatch(RID_增幅数字,L"RID_增幅数字%d",21);
	AddResIdBatch(RID_锻造数字,L"RID_锻造数字%d",9);
	AddResIdBatch(RID_徽章槽位,L"RID_徽章槽位%d",14);

	AddResId(RID_伤害详情背景_修炼道场,L"RID_伤害详情背景_修炼道场");
	AddResId(RID_伤害详情背景_巴卡尔攻坚战,L"RID_伤害详情背景_巴卡尔攻坚战");
	AddResId(RID_伤害详情背景_雾神攻坚战,L"RID_伤害详情背景_雾神攻坚战");

	AddResId(RID_打造标题_装备设置,L"RID_打造标题_装备设置");
	AddResId(RID_打造标题_装扮设置,L"RID_打造标题_装扮设置");
	AddResId(RID_打造标题_辟邪玉设置,L"RID_打造标题_辟邪玉设置");
	AddResId(RID_打造标题_杂项设置,L"RID_打造标题_杂项设置");
	AddResId(RID_打造标题_补正设置,L"RID_打造标题_补正设置");

	AddResId(RID_太初_馥郁的欢愉,L"RID_太初_馥郁的欢愉");
	AddResId(RID_太初_冰封的怨恨,L"RID_太初_冰封的怨恨");
	AddResId(RID_太初_逆流的记忆,L"RID_太初_逆流的记忆");
	AddResId(RID_太初_爆发的噩梦,L"RID_太初_爆发的噩梦");
	AddResId(RID_太初_守护魂,L"RID_太初_守护魂");
	AddResId(RID_太初_佩鲁斯帝国的荣光,L"RID_太初_佩鲁斯帝国的荣光");
	AddResId(RID_太初_灵魂追踪器,L"RID_太初_灵魂追踪器");
	AddResId(RID_太初_红兔,L"RID_太初_红兔");
	AddResId(RID_太初_回忆的低语,L"RID_太初_回忆的低语");
	AddResId(RID_太初_雪封的愤怒,L"RID_太初_雪封的愤怒");
	AddResId(RID_太初_遗忘魔石,L"RID_太初_遗忘魔石");
	AddResId(RID_太初_孵化的恶意之种,L"RID_太初_孵化的恶意之种");
	AddResId(RID_太初_世界偶像戒指,L"RID_太初_世界偶像戒指");
	AddResId(RID_太初_辨明异徒的食指,L"RID_太初_辨明异徒的食指");
	
	AddResIdBatch(RID_装备图标,L"RID_装备图标%d",装备总数);
	AddResIdBatch(RID_装备图标灰色,L"RID_装备图标灰色%d",装备总数);
	AddResId(RID_装备图标遮罩,L"RID_装备图标遮罩");

	AddResIdBatch(RID_技能图标_奶妈,L"RID_技能图标_奶妈%d",18);
	AddResIdBatch(RID_被动技能图标_奶妈,L"RID_被动技能图标_奶妈%d",7);	
	AddResId(RID_BUFF技能图标_奶妈,L"RID_BUFF技能图标_奶妈");
	AddResIdBatch(RID_技能图标_剑帝,L"RID_技能图标_剑帝%d",18);
	AddResIdBatch(RID_被动技能图标_剑帝,L"RID_被动技能图标_剑帝%d",5);	
	AddResId(RID_BUFF技能图标_剑帝,L"RID_BUFF技能图标_剑帝");

	AddResIdBatch(RID_符文图标_奶妈,L"RID_符文图标_奶妈%d",80);
	AddResIdBatch(RID_符文图标_剑帝,L"RID_符文图标_剑帝%d",80);
	AddResId(RID_符文红色,L"RID_符文红色");
	AddResId(RID_符文蓝色,L"RID_符文蓝色");
	AddResId(RID_符文紫色,L"RID_符文紫色");
	AddResId(RID_符文绿色,L"RID_符文绿色");
	AddResId(RID_符文黄色,L"RID_符文黄色");

	AddResId(RID_列表框背景,L"RID_列表框背景");
	
	AddResId(RID_技能区标题_护石符文,L"RID_技能区标题_护石符文");
	AddResId(RID_技能区标题_技能,L"RID_技能区标题_技能");
	AddResId(RID_技能区标题_职业设置,L"RID_技能区标题_职业设置");

	AddResId(RID_技能设置描述,L"RID_技能设置描述");

	AddResId(RID_附魔标记,L"RID_附魔标记");

	AddResId(RID_TestImage,L"RID_TestImage");
}

void AddAllControlId()
{
	//职业选择页
	AddCtrlId(CID_选择职业_底图,L"CID_选择职业_底图");
	AddCtrlId(CID_选择职业_标头,L"CID_选择职业_标头");
	AddCtrlId(CID_选择职业_奶妈,L"CID_选择职业_奶妈");
	AddCtrlId(CID_选择职业_剑帝,L"CID_选择职业_剑帝");

	//设置页
	AddCtrlId(CID_底图,L"CID_底图");
	AddCtrlId(CID_标头,L"CID_标头");
	AddCtrlId(CID_返回按钮,L"CID_返回按钮");
	AddCtrlId(CID_页内跳转_装备,L"CID_页内跳转_装备");
	AddCtrlId(CID_页内跳转_条件,L"CID_页内跳转_条件");
	AddCtrlId(CID_页内跳转_技能,L"CID_页内跳转_技能");
	AddCtrlId(CID_页内跳转_打造,L"CID_页内跳转_打造");
	AddCtrlId(CID_页内跳转_特性,L"CID_页内跳转_特性");
	AddCtrlId(CID_设置区,L"CID_设置区");
	AddCtrlId(CID_信息区,L"CID_信息区");

	//装备面板
	AddCtrlId(CID_装备面板标题,L"CID_装备面板标题");
	AddCtrlId(CID_装备面板,L"CID_装备面板");
	AddCtrlIdBatch(CID_装备图标,L"CID_装备图标%d",装备区装备总数);
	AddCtrlIdBatch(CID_装备图标遮罩,L"CID_装备图标遮罩%d",装备区装备总数);

	//条件面板
	AddCtrlId(CID_条件面板标题,L"CID_条件面板标题");
	AddCtrlId(CID_条件面板,L"CID_条件面板");
	AddCtrlId(CID_条件_场景,L"CID_条件_场景");
	AddCtrlId(CID_条件_怪物,L"CID_条件_怪物");
	AddCtrlIdBatch(CID_条件_药剂图标,L"CID_条件_药剂图标%d",DNF药剂总数);
	AddCtrlIdBatch(CID_条件_药剂,L"CID_条件_药剂%d",DNF药剂总数);
	AddCtrlId(CID_条件_出血触发频率,L"CID_条件_出血触发频率");
	AddCtrlId(CID_条件_中毒触发频率,L"CID_条件_中毒触发频率");
	AddCtrlId(CID_条件_灼伤触发频率,L"CID_条件_灼伤触发频率");
	AddCtrlId(CID_条件_感电触发频率,L"CID_条件_感电触发频率");
	AddCtrlId(CID_条件_出血层数,L"CID_条件_出血层数");
	AddCtrlId(CID_条件_中毒层数,L"CID_条件_中毒层数");
	AddCtrlId(CID_条件_感电层数,L"CID_条件_感电层数");
	AddCtrlId(CID_条件_控制型异常开关,L"CID_条件_控制型异常开关");
	AddCtrlId(CID_条件_控制型异常触发频率,L"CID_条件_控制型异常触发频率");
	AddCtrlId(CID_条件_HP范围,L"CID_条件_HP范围");
	AddCtrlId(CID_条件_MP范围,L"CID_条件_MP范围");
	AddCtrlId(CID_条件_队员数量,L"CID_条件_队员数量");
	AddCtrlId(CID_条件_怪物数量,L"CID_条件_怪物数量");
	AddCtrlId(CID_条件_千发暴击类型,L"CID_条件_千发暴击类型");
	AddCtrlId(CID_条件_装备暴击类型,L"CID_条件_装备暴击类型");
	AddCtrlId(CID_条件_机械怪物,L"CID_条件_机械怪物");
	AddCtrlId(CID_条件_恶魔怪物,L"CID_条件_恶魔怪物");
	AddCtrlId(CID_条件_精灵怪物,L"CID_条件_精灵怪物");
	AddCtrlId(CID_条件_天使怪物,L"CID_条件_天使怪物");
	AddCtrlId(CID_条件_龙族怪物,L"CID_条件_龙族怪物");
	AddCtrlId(CID_条件_人型怪物,L"CID_条件_人型怪物");
	AddCtrlId(CID_条件_野兽怪物,L"CID_条件_野兽怪物");
	AddCtrlId(CID_条件_植物怪物,L"CID_条件_植物怪物");
	AddCtrlId(CID_条件_不死怪物,L"CID_条件_不死怪物");
	AddCtrlId(CID_条件_昆虫怪物,L"CID_条件_昆虫怪物");
	AddCtrlId(CID_条件_普通敌人,L"CID_条件_普通敌人");
	AddCtrlId(CID_条件_稀有敌人,L"CID_条件_稀有敌人");
	AddCtrlId(CID_条件_精英敌人,L"CID_条件_精英敌人");
	AddCtrlId(CID_条件_领主敌人,L"CID_条件_领主敌人");
	AddCtrlId(CID_条件_正面攻击,L"CID_条件_正面攻击");
	AddCtrlId(CID_条件_背面攻击,L"CID_条件_背面攻击");
	AddCtrlId(CID_条件_破招攻击,L"CID_条件_破招攻击");
	AddCtrlId(CID_条件_非破招攻击,L"CID_条件_非破招攻击");
	AddCtrlId(CID_条件_自身出血状态,L"CID_条件_自身出血状态");
	AddCtrlId(CID_条件_自身中毒状态,L"CID_条件_自身中毒状态");
	AddCtrlId(CID_条件_自身灼伤状态,L"CID_条件_自身灼伤状态");
	AddCtrlId(CID_条件_自身感电状态,L"CID_条件_自身感电状态");
	AddCtrlId(CID_条件_自身冰冻状态,L"CID_条件_自身冰冻状态");
	AddCtrlId(CID_条件_自身减速状态,L"CID_条件_自身减速状态");
	AddCtrlId(CID_条件_自身眩晕状态,L"CID_条件_自身眩晕状态");
	AddCtrlId(CID_条件_自身诅咒状态,L"CID_条件_自身诅咒状态");
	AddCtrlId(CID_条件_自身失明状态,L"CID_条件_自身失明状态");
	AddCtrlId(CID_条件_自身石化状态,L"CID_条件_自身石化状态");
	AddCtrlId(CID_条件_自身睡眠状态,L"CID_条件_自身睡眠状态");
	AddCtrlId(CID_条件_自身混乱状态,L"CID_条件_自身混乱状态");
	AddCtrlId(CID_条件_自身束缚状态,L"CID_条件_自身束缚状态");
	AddCtrlId(CID_条件_怪物出血状态,L"CID_条件_怪物出血状态");
	AddCtrlId(CID_条件_怪物中毒状态,L"CID_条件_怪物中毒状态");
	AddCtrlId(CID_条件_怪物灼伤状态,L"CID_条件_怪物灼伤状态");
	AddCtrlId(CID_条件_怪物感电状态,L"CID_条件_怪物感电状态");
	AddCtrlId(CID_条件_怪物冰冻状态,L"CID_条件_怪物冰冻状态");
	AddCtrlId(CID_条件_怪物减速状态,L"CID_条件_怪物减速状态");
	AddCtrlId(CID_条件_怪物眩晕状态,L"CID_条件_怪物眩晕状态");
	AddCtrlId(CID_条件_怪物诅咒状态,L"CID_条件_怪物诅咒状态");
	AddCtrlId(CID_条件_怪物失明状态,L"CID_条件_怪物失明状态");
	AddCtrlId(CID_条件_怪物石化状态,L"CID_条件_怪物石化状态");
	AddCtrlId(CID_条件_怪物睡眠状态,L"CID_条件_怪物睡眠状态");
	AddCtrlId(CID_条件_怪物混乱状态,L"CID_条件_怪物混乱状态");
	AddCtrlId(CID_条件_怪物束缚状态,L"CID_条件_怪物束缚状态");

	//技能面板
	AddCtrlId(CID_技能面板标题,L"CID_技能面板标题");
	AddCtrlId(CID_技能面板,L"CID_技能面板");
	AddCtrlId(CID_技能_护石符文标题,L"CID_技能_护石符文标题");
	AddCtrlId(CID_技能_技能标题,L"CID_技能_技能标题");
	AddCtrlId(CID_技能_职业设置标题,L"CID_技能_职业设置标题");
	AddCtrlId(CID_技能_技能设置描述,L"CID_技能_技能设置描述");	
	AddCtrlIdBatch(CID_技能_技能图标,L"CID_技能_技能图标%d",20);
	AddCtrlIdBatch(CID_技能_技能等级,L"CID_技能_技能等级%d",20);
	AddCtrlIdBatch(CID_技能_技能TP等级,L"CID_技能_技能TP等级%d",20);
	AddCtrlIdBatch(CID_技能_技能次数,L"CID_技能_技能次数%d",20);
	AddCtrlIdBatch(CID_技能_技能宠物次数,L"CID_技能_技能宠物次数%d",20);
	AddCtrlIdBatch(CID_技能_技能手搓次数,L"CID_技能_技能手搓次数%d",20);
	AddCtrlIdBatch(CID_技能_技能手搓方向键,L"CID_技能_技能手搓方向键%d",20);
	AddCtrlIdBatch(CID_技能_技能在快捷栏,L"CID_技能_技能在快捷栏%d",20);
	AddCtrlIdBatch(CID_技能_被动技能图标,L"CID_技能_被动技能图标%d",10);
	AddCtrlIdBatch(CID_技能_被动技能等级,L"CID_技能_被动技能等级%d",10);
	AddCtrlId(CID_技能_Buff技能图标,L"CID_技能_Buff技能图标");
	AddCtrlId(CID_技能_Buff技能数值,L"CID_技能_Buff技能数值");
	AddCtrlId(CID_技能_护石1,L"CID_技能_护石1");
	AddCtrlId(CID_技能_护石2,L"CID_技能_护石2");
	AddCtrlId(CID_技能_护石3,L"CID_技能_护石3");
	AddCtrlId(CID_技能_符文颜色1_1,L"CID_技能_符文颜色1_1");
	AddCtrlId(CID_技能_符文颜色1_2,L"CID_技能_符文颜色1_2");
	AddCtrlId(CID_技能_符文颜色1_3,L"CID_技能_符文颜色1_3");
	AddCtrlId(CID_技能_符文颜色2_1,L"CID_技能_符文颜色2_1");
	AddCtrlId(CID_技能_符文颜色2_2,L"CID_技能_符文颜色2_2");
	AddCtrlId(CID_技能_符文颜色2_3,L"CID_技能_符文颜色2_3");
	AddCtrlId(CID_技能_符文颜色3_1,L"CID_技能_符文颜色3_1");
	AddCtrlId(CID_技能_符文颜色3_2,L"CID_技能_符文颜色3_2");
	AddCtrlId(CID_技能_符文颜色3_3,L"CID_技能_符文颜色3_3");
	AddCtrlId(CID_技能_符文1_1,L"CID_技能_符文1_1");
	AddCtrlId(CID_技能_符文1_2,L"CID_技能_符文1_2");
	AddCtrlId(CID_技能_符文1_3,L"CID_技能_符文1_3");
	AddCtrlId(CID_技能_符文2_1,L"CID_技能_符文2_1");
	AddCtrlId(CID_技能_符文2_2,L"CID_技能_符文2_2");
	AddCtrlId(CID_技能_符文2_3,L"CID_技能_符文2_3");
	AddCtrlId(CID_技能_符文3_1,L"CID_技能_符文3_1");
	AddCtrlId(CID_技能_符文3_2,L"CID_技能_符文3_2");
	AddCtrlId(CID_技能_符文3_3,L"CID_技能_符文3_3");
	AddCtrlId(CID_技能_特殊设置1,L"CID_技能_特殊设置1");
	AddCtrlId(CID_技能_特殊设置2,L"CID_技能_特殊设置2");

	//打造面板
	AddCtrlId(CID_打造面板标题,L"CID_打造面板标题");
	AddCtrlId(CID_打造面板,L"CID_打造面板");
	AddCtrlId(CID_打造_标题_装备设置,L"CID_打造_标题_装备设置");
	AddCtrlId(CID_打造_标题_装扮设置,L"CID_打造_标题_装扮设置");
	AddCtrlId(CID_打造_标题_辟邪玉设置,L"CID_打造_标题_辟邪玉设置");
	AddCtrlId(CID_打造_标题_杂项设置,L"CID_打造_标题_杂项设置");
	AddCtrlId(CID_打造_标题_补正设置,L"CID_打造_标题_补正设置");
	AddCtrlId(CID_打造_一键打造列表,L"CID_打造_一键打造列表");
	AddCtrlId(CID_打造_一键强化按钮,L"CID_打造_一键强化按钮");
	AddCtrlId(CID_打造_一键增幅按钮,L"CID_打造_一键增幅按钮");
	AddCtrlId(CID_打造_使用提示标签,L"CID_打造_使用提示标签");
	AddCtrlId(CID_打造_当前部位图标,L"CID_打造_当前部位图标");
	AddCtrlId(CID_打造_当前部位标签,L"CID_打造_当前部位标签");
	AddCtrlId(CID_打造_强化类型,L"CID_打造_强化类型");
	AddCtrlId(CID_打造_强化等级,L"CID_打造_强化等级");
	AddCtrlId(CID_打造_锻造等级,L"CID_打造_锻造等级");
	AddCtrlId(CID_打造_附魔,L"CID_打造_附魔");
	AddCtrlId(CID_打造_徽章1,L"CID_打造_徽章1");
	AddCtrlId(CID_打造_徽章2,L"CID_打造_徽章2");
	AddCtrlId(CID_打造_融合升级开关,L"CID_打造_融合升级开关");
	AddCtrlId(CID_打造_武器星团等级,L"CID_打造_武器星团等级");
	AddCtrlId(CID_打造_武器梦境等级,L"CID_打造_武器梦境等级");
	AddCtrlId(CID_打造_武器记忆等级,L"CID_打造_武器记忆等级");
	AddCtrlId(CID_打造_武器装扮,L"CID_打造_武器装扮");
	AddCtrlId(CID_打造_武器装扮徽章1,L"CID_打造_武器装扮徽章1");
	AddCtrlId(CID_打造_武器装扮徽章2,L"CID_打造_武器装扮徽章2");
	AddCtrlId(CID_打造_皮肤,L"CID_打造_皮肤");
	AddCtrlId(CID_打造_皮肤徽章1,L"CID_打造_皮肤徽章1");
	AddCtrlId(CID_打造_皮肤徽章2,L"CID_打造_皮肤徽章2");
	AddCtrlId(CID_打造_光环,L"CID_打造_光环");
	AddCtrlId(CID_打造_光环徽章1,L"CID_打造_光环徽章1");
	AddCtrlId(CID_打造_光环徽章2,L"CID_打造_光环徽章2");
	AddCtrlIdBatch(CID_打造_装扮品质,L"CID_打造_装扮品质%d",装扮部位总数);
	AddCtrlIdBatch(CID_打造_装扮属性,L"CID_打造_装扮属性%d",装扮部位总数);
	AddCtrlId(CID_打造_辟邪玉词条1,L"CID_打造_辟邪玉词条1");
	AddCtrlId(CID_打造_辟邪玉词条2,L"CID_打造_辟邪玉词条2");
	AddCtrlId(CID_打造_辟邪玉词条3,L"CID_打造_辟邪玉词条3");
	AddCtrlId(CID_打造_辟邪玉词条4,L"CID_打造_辟邪玉词条4");
	AddCtrlId(CID_打造_辟邪玉词条1属性标签,L"CID_打造_辟邪玉词条1属性标签");
	AddCtrlId(CID_打造_辟邪玉词条2属性标签,L"CID_打造_辟邪玉词条2属性标签");
	AddCtrlId(CID_打造_辟邪玉词条3属性标签,L"CID_打造_辟邪玉词条3属性标签");
	AddCtrlId(CID_打造_辟邪玉词条4属性标签,L"CID_打造_辟邪玉词条4属性标签");
	AddCtrlId(CID_打造_辟邪玉词条1属性滑块,L"CID_打造_辟邪玉词条1属性滑块");
	AddCtrlId(CID_打造_辟邪玉词条2属性滑块,L"CID_打造_辟邪玉词条2属性滑块");
	AddCtrlId(CID_打造_辟邪玉词条3属性滑块,L"CID_打造_辟邪玉词条3属性滑块");
	AddCtrlId(CID_打造_辟邪玉词条4属性滑块,L"CID_打造_辟邪玉词条4属性滑块");
	AddCtrlId(CID_打造_星辰百变数量,L"CID_打造_星辰百变数量");
	AddCtrlId(CID_打造_跨越之忆星团,L"CID_打造_跨越之忆星团");
	AddCtrlId(CID_打造_副武器状态,L"CID_打造_副武器状态");
	AddCtrlId(CID_打造_副武器强化,L"CID_打造_副武器强化");
	AddCtrlId(CID_打造_红色宠物装备,L"CID_打造_红色宠物装备");
	AddCtrlId(CID_打造_蓝色宠物装备,L"CID_打造_蓝色宠物装备");
	AddCtrlId(CID_打造_绿色宠物装备,L"CID_打造_绿色宠物装备");
	AddCtrlId(CID_打造_快捷栏装备,L"CID_打造_快捷栏装备");
	AddCtrlId(CID_打造_勋章品质,L"CID_打造_勋章品质");
	AddCtrlId(CID_打造_勋章强化,L"CID_打造_勋章强化");
	AddCtrlId(CID_打造_守护珠1品质,L"CID_打造_守护珠1品质");
	AddCtrlId(CID_打造_守护珠2品质,L"CID_打造_守护珠2品质");
	AddCtrlId(CID_打造_守护珠3品质,L"CID_打造_守护珠3品质");
	AddCtrlId(CID_打造_守护珠4品质,L"CID_打造_守护珠4品质");
	AddCtrlId(CID_打造_冒险团等级,L"CID_打造_冒险团等级");
	AddCtrlId(CID_打造_公会属性,L"CID_打造_公会属性");
	AddCtrlId(CID_打造_训练官属性1,L"CID_打造_训练官属性1");
	AddCtrlId(CID_打造_训练官属性2,L"CID_打造_训练官属性2");
	AddCtrlId(CID_打造_婚房属性,L"CID_打造_婚房属性");
	AddCtrlId(CID_打造_婚戒属性,L"CID_打造_婚戒属性");
	AddCtrlId(CID_打造_晶体契约,L"CID_打造_晶体契约");
	AddCtrlId(CID_打造_名称装饰卡,L"CID_打造_名称装饰卡");
	AddCtrlId(CID_打造_收集箱类型,L"CID_打造_收集箱类型");
	AddCtrlId(CID_打造_收集箱稀有个数,L"CID_打造_收集箱稀有个数");
	AddCtrlId(CID_打造_收集箱神器个数,L"CID_打造_收集箱神器个数");
	AddCtrlId(CID_打造_辅助力智加成,L"CID_打造_辅助力智加成");
	AddCtrlId(CID_打造_辅助三攻加成,L"CID_打造_辅助三攻加成");
	AddCtrlId(CID_打造_辅助技攻加成,L"CID_打造_辅助技攻加成");
	AddCtrlId(CID_打造_四维补正,L"CID_打造_四维补正");
	AddCtrlId(CID_打造_三攻补正,L"CID_打造_三攻补正");
	AddCtrlId(CID_打造_技攻补正,L"CID_打造_技攻补正");
	AddCtrlId(CID_打造_攻击强化补正,L"CID_打造_攻击强化补正");
	AddCtrlId(CID_打造_攻击强化增幅补正,L"CID_打造_攻击强化增幅补正");
	AddCtrlId(CID_打造_火强补正,L"CID_打造_火强补正");
	AddCtrlId(CID_打造_冰强补正,L"CID_打造_冰强补正");
	AddCtrlId(CID_打造_光强补正,L"CID_打造_光强补正");
	AddCtrlId(CID_打造_暗强补正,L"CID_打造_暗强补正");
	AddCtrlId(CID_打造_火抗补正,L"CID_打造_火抗补正");
	AddCtrlId(CID_打造_冰抗补正,L"CID_打造_冰抗补正");
	AddCtrlId(CID_打造_光抗补正,L"CID_打造_光抗补正");
	AddCtrlId(CID_打造_暗抗补正,L"CID_打造_暗抗补正");
	AddCtrlIdBatch(CID_打造_异常状态补正,L"CID_打造_异常状态补正%d",13);
	AddCtrlId(CID_打造_攻速补正,L"CID_打造_攻速补正");
	AddCtrlId(CID_打造_技能范围补正,L"CID_打造_技能范围补正");
	AddCtrlId(CID_打造_MP消耗量补正,L"CID_打造_MP消耗量补正");
	AddCtrlIdBatch(CID_打造描述标签开始,L"CID_打造描述标签%d",CID_打造_控件结束-CID_打造_控件开始);

	//特性面板
	AddCtrlId(CID_特性面板标题,L"CID_特性面板标题");
	AddCtrlId(CID_特性面板,L"CID_特性面板");
	AddCtrlId(CID_特性技能详情滚动视图,L"CID_特性技能详情滚动视图");
	AddCtrlId(CID_特性技能详情,L"CID_特性技能详情");
	AddCtrlIdBatch(CID_特性技能图标,L"CID_特性技能图标%d",47);
	AddCtrlIdBatch(CID_特性技能等级,L"CID_特性技能等级%d",47);
	AddCtrlId(CID_特性技能升级按钮,L"CID_特性技能升级按钮");
	AddCtrlId(CID_特性技能降级按钮,L"CID_特性技能降级按钮");
	AddCtrlId(CID_特性技能图标光圈,L"CID_特性技能图标光圈");
	AddCtrlId(CID_特性技能重置按钮,L"CID_特性技能重置按钮");
	
	//角色详情面板
	AddCtrlId(CID_角色详情面板,L"CID_角色详情面板");
	AddCtrlId(CID_角色面板职业标签,L"CID_角色面板职业标签");
	AddCtrlId(CID_角色面板伤害类型标签,L"CID_角色面板伤害类型标签");
	AddCtrlId(CID_角色详情_Q版角色,L"CID_角色详情_Q版角色");
	AddCtrlId(CID_角色面板装备,L"CID_角色面板装备");
	AddCtrlId(CID_角色面板上衣,L"CID_角色面板上衣");
	AddCtrlId(CID_角色面板下装,L"CID_角色面板下装");
	AddCtrlId(CID_角色面板护肩,L"CID_角色面板护肩");
	AddCtrlId(CID_角色面板腰带,L"CID_角色面板腰带");
	AddCtrlId(CID_角色面板鞋子,L"CID_角色面板鞋子");
	AddCtrlId(CID_角色面板手镯,L"CID_角色面板手镯");
	AddCtrlId(CID_角色面板项链,L"CID_角色面板项链");
	AddCtrlId(CID_角色面板戒指,L"CID_角色面板戒指");
	AddCtrlId(CID_角色面板左槽,L"CID_角色面板左槽");
	AddCtrlId(CID_角色面板右槽,L"CID_角色面板右槽");
	AddCtrlId(CID_角色面板耳环,L"CID_角色面板耳环");
	AddCtrlId(CID_角色面板武器,L"CID_角色面板武器");
	AddCtrlId(CID_角色面板称号,L"CID_角色面板称号");
	AddCtrlId(CID_角色面板宠物,L"CID_角色面板宠物");
	AddCtrlId(CID_角色面板上衣贴膜,L"CID_角色面板上衣贴膜");
	AddCtrlId(CID_角色面板下装贴膜,L"CID_角色面板下装贴膜");
	AddCtrlId(CID_角色面板护肩贴膜,L"CID_角色面板护肩贴膜");
	AddCtrlId(CID_角色面板腰带贴膜,L"CID_角色面板腰带贴膜");
	AddCtrlId(CID_角色面板鞋子贴膜,L"CID_角色面板鞋子贴膜");
	AddCtrlId(CID_角色面板手镯贴膜,L"CID_角色面板手镯贴膜");
	AddCtrlId(CID_角色面板项链贴膜,L"CID_角色面板项链贴膜");
	AddCtrlId(CID_角色面板戒指贴膜,L"CID_角色面板戒指贴膜");
	AddCtrlId(CID_角色面板左槽贴膜,L"CID_角色面板左槽贴膜");
	AddCtrlId(CID_角色面板右槽贴膜,L"CID_角色面板右槽贴膜");
	AddCtrlId(CID_角色面板耳环贴膜,L"CID_角色面板耳环贴膜");
	AddCtrlId(CID_角色面板武器贴膜,L"CID_角色面板武器贴膜");
	AddCtrlId(CID_角色面板上衣强化,L"CID_角色面板上衣强化");
	AddCtrlId(CID_角色面板下装强化,L"CID_角色面板下装强化");
	AddCtrlId(CID_角色面板护肩强化,L"CID_角色面板护肩强化");
	AddCtrlId(CID_角色面板腰带强化,L"CID_角色面板腰带强化");
	AddCtrlId(CID_角色面板鞋子强化,L"CID_角色面板鞋子强化");
	AddCtrlId(CID_角色面板手镯强化,L"CID_角色面板手镯强化");
	AddCtrlId(CID_角色面板项链强化,L"CID_角色面板项链强化");
	AddCtrlId(CID_角色面板戒指强化,L"CID_角色面板戒指强化");
	AddCtrlId(CID_角色面板左槽强化,L"CID_角色面板左槽强化");
	AddCtrlId(CID_角色面板右槽强化,L"CID_角色面板右槽强化");
	AddCtrlId(CID_角色面板耳环强化,L"CID_角色面板耳环强化");
	AddCtrlId(CID_角色面板武器强化,L"CID_角色面板武器强化");
	AddCtrlId(CID_角色面板武器锻造,L"CID_角色面板武器锻造");
	AddCtrlId(CID_角色面板上衣徽章,L"CID_角色面板上衣徽章");
	AddCtrlId(CID_角色面板下装徽章,L"CID_角色面板下装徽章");
	AddCtrlId(CID_角色面板护肩徽章,L"CID_角色面板护肩徽章");
	AddCtrlId(CID_角色面板腰带徽章,L"CID_角色面板腰带徽章");
	AddCtrlId(CID_角色面板鞋子徽章,L"CID_角色面板鞋子徽章");
	AddCtrlId(CID_角色面板手镯徽章,L"CID_角色面板手镯徽章");
	AddCtrlId(CID_角色面板项链徽章,L"CID_角色面板项链徽章");
	AddCtrlId(CID_角色面板戒指徽章,L"CID_角色面板戒指徽章");
	AddCtrlId(CID_角色面板左槽徽章,L"CID_角色面板左槽徽章");
	AddCtrlId(CID_角色面板右槽徽章,L"CID_角色面板右槽徽章");
	AddCtrlId(CID_角色面板上衣附魔,L"CID_角色面板上衣附魔");
	AddCtrlId(CID_角色面板下装附魔,L"CID_角色面板下装附魔");
	AddCtrlId(CID_角色面板护肩附魔,L"CID_角色面板护肩附魔");
	AddCtrlId(CID_角色面板腰带附魔,L"CID_角色面板腰带附魔");
	AddCtrlId(CID_角色面板鞋子附魔,L"CID_角色面板鞋子附魔");
	AddCtrlId(CID_角色面板手镯附魔,L"CID_角色面板手镯附魔");
	AddCtrlId(CID_角色面板项链附魔,L"CID_角色面板项链附魔");
	AddCtrlId(CID_角色面板戒指附魔,L"CID_角色面板戒指附魔");
	AddCtrlId(CID_角色面板左槽附魔,L"CID_角色面板左槽附魔");
	AddCtrlId(CID_角色面板右槽附魔,L"CID_角色面板右槽附魔");
	AddCtrlId(CID_角色面板耳环附魔,L"CID_角色面板耳环附魔");
	AddCtrlId(CID_角色面板武器附魔,L"CID_角色面板武器附魔");
	AddCtrlId(CID_角色面板称号附魔,L"CID_角色面板称号附魔");
	AddCtrlId(CID_角色面板宠物附魔,L"CID_角色面板宠物附魔");
	AddCtrlId(CID_属性标签_物理攻击,L"CID_属性标签_物理攻击");
	AddCtrlId(CID_属性标签_魔法攻击,L"CID_属性标签_魔法攻击");
	AddCtrlId(CID_属性标签_独立攻击,L"CID_属性标签_独立攻击");
	AddCtrlId(CID_属性标签_力量,L"CID_属性标签_力量");
	AddCtrlId(CID_属性标签_智力,L"CID_属性标签_智力");
	AddCtrlId(CID_属性标签_属性强化,L"CID_属性标签_属性强化");
	AddCtrlId(CID_属性标签_攻击强化,L"CID_属性标签_攻击强化");
	AddCtrlId(CID_属性标签_攻击强化增幅,L"CID_属性标签_攻击强化增幅");
	AddCtrlId(CID_属性标签_技能伤害,L"CID_属性标签_技能伤害");
	AddCtrlId(CID_属性标签_直伤占比,L"CID_属性标签_直伤占比");
	AddCtrlId(CID_属性标签_冷却减少,L"CID_属性标签_冷却减少");
	AddCtrlId(CID_属性标签_技能范围,L"CID_属性标签_技能范围");
	AddCtrlId(CID_属性标签_MP消耗量,L"CID_属性标签_MP消耗量");
	AddCtrlId(CID_属性标签_攻击速度,L"CID_属性标签_攻击速度");
	AddCtrlId(CID_属性标签_施放速度,L"CID_属性标签_施放速度");
	AddCtrlId(CID_属性标签_移动速度,L"CID_属性标签_移动速度");
	AddCtrlId(CID_属性标签_出血伤害占比,L"CID_属性标签_出血伤害占比");
	AddCtrlId(CID_属性标签_中毒伤害占比,L"CID_属性标签_中毒伤害占比");
	AddCtrlId(CID_属性标签_灼伤伤害占比,L"CID_属性标签_灼伤伤害占比");
	AddCtrlId(CID_属性标签_感电伤害占比,L"CID_属性标签_感电伤害占比");
	AddCtrlId(CID_属性标签_出血伤害增加,L"CID_属性标签_出血伤害增加");
	AddCtrlId(CID_属性标签_中毒伤害增加,L"CID_属性标签_中毒伤害增加");
	AddCtrlId(CID_属性标签_灼伤伤害增加,L"CID_属性标签_灼伤伤害增加");
	AddCtrlId(CID_属性标签_感电伤害增加,L"CID_属性标签_感电伤害增加");
	AddCtrlId(CID_属性标签_属性抗性,L"CID_属性标签_属性抗性");
	AddCtrlId(CID_属性标签_出血抗性,L"CID_属性标签_出血抗性");
	AddCtrlId(CID_属性标签_中毒抗性,L"CID_属性标签_中毒抗性");
	AddCtrlId(CID_属性标签_灼伤抗性,L"CID_属性标签_灼伤抗性");
	AddCtrlId(CID_属性标签_感电抗性,L"CID_属性标签_感电抗性");
	AddCtrlId(CID_属性标签_冰冻抗性,L"CID_属性标签_冰冻抗性");
	AddCtrlId(CID_属性标签_减速抗性,L"CID_属性标签_减速抗性");
	AddCtrlId(CID_属性标签_眩晕抗性,L"CID_属性标签_眩晕抗性");
	AddCtrlId(CID_属性标签_诅咒抗性,L"CID_属性标签_诅咒抗性");
	AddCtrlId(CID_属性标签_失明抗性,L"CID_属性标签_失明抗性");
	AddCtrlId(CID_属性标签_石化抗性,L"CID_属性标签_石化抗性");
	AddCtrlId(CID_属性标签_睡眠抗性,L"CID_属性标签_睡眠抗性");
	AddCtrlId(CID_属性标签_混乱抗性,L"CID_属性标签_混乱抗性");
	AddCtrlId(CID_属性标签_束缚抗性,L"CID_属性标签_束缚抗性");
	AddCtrlId(CID_伤害标签,L"CID_伤害标签");
	AddCtrlId(CID_提升率标签,L"CID_提升率标签");
	AddCtrlId(CID_提升率切换按钮,L"CID_提升率切换按钮");
	AddCtrlId(CID_设为基准按钮,L"CID_设为基准按钮");
	AddCtrlId(CID_伤害详情按钮,L"CID_伤害详情按钮");

	//冷却详情面板
	AddCtrlId(CID_冷却详情面板,L"CID_冷却详情面板");
	AddCtrlId(CID_冷却_信息列表视图,L"CID_冷却_信息列表视图");
	AddCtrlIdBatch(CID_冷却_技能图标,L"CID_冷却_技能图标%d",20);
	AddCtrlIdBatch(CID_冷却_技能原始时间,L"CID_冷却_技能原始时间%d",20);
	AddCtrlIdBatch(CID_冷却_技能当前时间,L"CID_冷却_技能当前时间%d",20);
	AddCtrlIdBatch(CID_冷却_技能缩减率,L"CID_冷却_技能缩减率%d",20);
	AddCtrlIdBatch(CID_冷却_技能无色数,L"CID_冷却_技能无色数%d",20);

	//装备详情面板
	AddCtrlId(CID_装备详情面板,L"CID_装备详情面板");
	AddCtrlId(CID_装备详情_图标,L"CID_装备详情_图标");
	AddCtrlId(CID_装备详情_名称,L"CID_装备详情_名称");
	AddCtrlId(CID_装备详情_部位,L"CID_装备详情_部位");
	AddCtrlId(CID_装备详情_强化力智加成,L"CID_装备详情_强化力智加成");
	AddCtrlId(CID_装备详情_强化三攻加成,L"CID_装备详情_强化三攻加成");
	AddCtrlId(CID_装备详情_锻造独立加成,L"CID_装备详情_锻造独立加成");
	AddCtrlId(CID_装备详情_条件状态,L"CID_装备详情_条件状态");
	AddCtrlId(CID_装备详情_装备描述底,L"CID_装备详情_装备描述底");
	AddCtrlId(CID_装备详情_装备描述标签,L"CID_装备详情_装备描述标签");
	AddCtrlId(CID_装备详情_自定义选择底,L"CID_装备详情_自定义选择底");
	AddCtrlId(CID_装备详情_武器贴膜底,L"CID_装备详情_武器贴膜底");
	AddCtrlId(CID_装备详情_武器贴膜列表1,L"CID_装备详情_武器贴膜列表1");
	AddCtrlId(CID_装备详情_武器贴膜列表2,L"CID_装备详情_武器贴膜列表2");
	AddCtrlId(CID_装备详情_武器贴膜列表3,L"CID_装备详情_武器贴膜列表3");
	AddCtrlId(CID_装备详情_传说贴膜底,L"CID_装备详情_传说贴膜底");
	AddCtrlId(CID_装备详情_传说贴膜列表1,L"CID_装备详情_传说贴膜列表1");
	AddCtrlId(CID_装备详情_传说贴膜列表2,L"CID_装备详情_传说贴膜列表2");
	AddCtrlId(CID_装备详情_传说贴膜列表3,L"CID_装备详情_传说贴膜列表3");

	//伤害详情页
	AddCtrlId(CID_伤害详情_底图,L"CID_伤害详情_底图");
	AddCtrlId(CID_伤害详情_标头,L"CID_伤害详情_标头");
	AddCtrlId(CID_伤害详情_返回按钮,L"CID_伤害详情_返回按钮");
	AddCtrlId(CID_伤害详情_角色详情面板,L"CID_伤害详情_角色详情面板");	
	AddCtrlId(CID_伤害详情_场景图标,L"CID_伤害详情_场景图标");
	AddCtrlId(CID_伤害详情_系统奶标签,L"CID_伤害详情_系统奶标签");
	AddCtrlId(CID_伤害详情_怪物图标,L"CID_伤害详情_怪物图标");
	AddCtrlId(CID_伤害详情_怪物标签,L"CID_伤害详情_怪物标签");
	AddCtrlId(CID_伤害详情_信息列表视图,L"CID_伤害详情_信息列表视图");	
	AddCtrlIdBatch(CID_伤害详情_技能图标,L"CID_伤害详情_技能图标%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能等级,L"CID_伤害详情_技能等级%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能次数,L"CID_伤害详情_技能次数%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能冷却,L"CID_伤害详情_技能冷却%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能平均伤害,L"CID_伤害详情_技能平均伤害%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能总伤害,L"CID_伤害详情_技能总伤害%d",20);
	AddCtrlIdBatch(CID_伤害详情_技能占比,L"CID_伤害详情_技能占比%d",20);
	AddCtrlIdBatch(CID_伤害详情_被动技能图标,L"CID_伤害详情_被动技能图标%d",10);
	AddCtrlIdBatch(CID_伤害详情_被动技能等级,L"CID_伤害详情_被动技能等级%d",10);


	AddCtrlId(CID_Test0,L"CID_Test0");
	AddCtrlId(CID_Test1,L"CID_Test1");
	AddCtrlId(CID_Test2,L"CID_Test2");
	AddCtrlId(CID_Test3,L"CID_Test3");
}


void InitStringIdMap()
{
	AddAllResourceId();
	AddAllControlId();
}


